import java.util.Scanner;
//字符串反转
public class test {
    import java.util.*;
    public class Main{
        public static void main(String[]args){
            Scanner sc=new Scanner(System.in);
            String str=sc.nextLine();
            char[]arr=str.toCharArray();
            int len=arr.length;
            int i=0;
            int j=len-1;
            while(i<j){
                char tmp=arr[i];
                arr[i]=arr[j];
                arr[j]=tmp;
                i++;
                j--;
            }
            String s=new String(arr);
            System.out.println(s);
        }
    }
}
